﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ConfigManage.aspx.cs" Inherits="Educational_School_ConfigManage" %>
<script type="text/javascript">
window.addEvent('domready',function(){
    new FormCheck('ConfigManage',{display:{tipsPosition:'left'},submit:false,onValidateSuccess:function(){
        MUI.showModalMessage('正在修改系统基本配置');
        new Request.JSON({url:'../Ajax/SchoolManage.aspx?Action=updateSchool',noCache:true,onSuccess:function(result){
            MUI.hideModalMessage();
            if(result.error)
                MUI.appendStatusMessage({'text':result.msg});
            else
                MUI.appendStatusMessage({'text':result.msg});
		},onFailure:function(error){
			MUI.appendStatusMessage({'text':'AJAX提交表单的过程中发生未知错误。'});
			MUI.hideModalMessage();
	    }}).post($('ConfigManage'));
	    
    }});
});
</script>
<form id="ConfigManage">
<table class="tableFixed" border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr class="tableContent1">
        <td class="tableLeft1">学校名称：</td>
        <td class="tableLeft2"><input class="input validate['required','length[4,50]']" name="schoolName" type="text" value="<%=school.schoolName%>" /></td>
    </tr>
    <tr class="tableContent2">
        <td class="tableLeft1">法人代表：</td>
        <td class="tableLeft2"><input class="input validate['required','length[2,10]']" name="legalRepresentative" type="text" value="<%=school.legalRepresentative%>" /></td>
    </tr>
    <tr class="tableContent1">
        <td class="tableLeft1">联系电话：</td>
        <td class="tableLeft2"><input class="input validate['required','length[2,16]','phone']" name="telnumber" type="text" value="<%=school.telnumber%>" /></td>
    </tr>
    <tr class="tableContent2">
        <td class="tableLeft1"></td>
        <td class="tableLeft2"><input class="submit button validate['submit']" type="button" value="提交修改" /></td>
    </tr>
</table>
</form>